from collections import namedtuple

# 定于具名元组类

Point = namedtuple("Point", ["x", "y"])
p = Point(10, 20)
print(p.x, p.y)
print(p[0], p[1])

Person = namedtuple("Person", ("name", "age"))


teststr = "a,b,c,d,f,g,a hello"

newlist = teststr.split()

newstr2 = "@".join(newlist)
